package spring.JUNIT.aware;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class ApplicationContextTest implements ApplicationContextAware {

	private ApplicationContext ApplicationContext;

	@Override
	public void setApplicationContext(ApplicationContext applicationContext)
			throws BeansException {
		this.ApplicationContext = applicationContext;
		System.out.println("context:"
				+ applicationContext.getBean("ApplicationContextTest"));
	}

}
